<include file="public@header" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/zoomify.min.css">
</head>
<body>
	<div class="wrap js-check-wrap">		
		<form class="well form-inline margin-top-20" method="post" action="{:url('ShenHe/index')}">
             店铺列表：
        <select class="form-control" name="storeid" style="width: 140px;">
        	<!-- <option>请选择</option>  -->
	   	   <foreach name='list_store_list' item='vl' key='kl'>
	       <option value='{$vl.id}'>{$vl.store_name}</option> 
	       </foreach>
   		</select>   
         <input type="submit" class="btn btn-primary" value="搜索" />
         <a class="btn btn-danger" href="{:url('ShenHe/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>				
				<tr>
					<th width="40">ID</th>
					<th align="left">商品名称</th>					
					<th align="left">所属类别</th>
					<th align="left">添加时间</th>
					<th align="left">价格</th>
					<th align="left">会员价</th>
					 <th align="left">店铺</th>					
					<th align="left">图片</th>
					<th width="160">审核</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">				
				<tr>
					<td>{$vo.g_id}</td>
					<td>{$vo.g_goodsname}</td>					
					<td>{$vo['g_category']|getCname}</td>
					<td>{$vo.g_ctime|time_format}</td>
					<td>{$vo.g_price}</td>
					<td>{$vo.g_vipprice}</td>
					<td>{:get_store_data($vo['storeid'],'store_name')}</td>				
					<td>
						<div class="example col-xs-6 col-md-6">
						<p><img src="__ROOT__/upload/{$vo.g_pic}" class="img-rounded" alt="" width='50' height='50'></p>
						</div>
					</td>
					<td>						
						<a class="js-ajax-dialog-btn" href="{:url('ShenHe/agree',array('g_id'=>$vo['g_id']))}">同意</a>
						<a class="js-ajax-dialog-btn" href="{:url('ShenHe/refuse',array('g_id'=>$vo['g_id']))}">拒绝</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__TMPL__/public/assets/js/zoomify.min.js"></script>
	<script type="text/javascript">
		$('.example img').zoomify();
	</script>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>